package com.dayang.controllor;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.view.RedirectView;

import com.dayang.model.Userif;
import com.shiro.utils.CSiUtil;

@RestController
@RequestMapping(value = "/test")  
public class TestContorllor {
	
	
	@RequestMapping(value = "/show", method = RequestMethod.GET)  
	public Userif formTag(HttpSession session, HttpServletRequest request) {  
		System.out.println("客户端获取到的token是："+CSiUtil.getCurrentAsToken());
		Userif  user = new Userif();
		user.setId(1000L);;
		user.setUsername("001");
		user.setPassword("123456");;
		
		return user;
	   
	} 
		
	
	
	
	

}
